import { Vector2 } from 'three';

interface XYObject {
  x: number;
  y: number;
}

export function object2Vector2({ x, y }: XYObject) {
  return new Vector2(x, y);
}

export function vector22Object({ x, y }: XYObject): XYObject {
  return { x, y };
}
